package com.example.demo.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

import org.springframework.format.annotation.DateTimeFormat;

import com.example.demo.custom.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
 *客户关系录入窗口（录入）2
 * @author 陶国庆
 *
 */
@Entity
public class ClientRelations2 {
	private Integer id;
	private Integer month;
	private Integer years;

	private ClientRelations clientRelations;		//表一
	private Integer kehuzhuanjieshaoxiansuo;		//客户转介绍线索
	private Integer kehuzhuanjieshaojiaofuliang;	//客户转介绍交付量
	private Integer kesushuliang;					//客诉数量 
	private String kesujibie;						//客诉级别
	private String kesuleibie;   					//客诉类别
	private String kesuchulizhuangkuang;			//客诉处理状况
	private Integer jieanshuliang;					//结案数量
	/**
	 * 起始日期
	 */

	private Date beginDate;
	/**
	 * 结束日期
	 */
	private Date endDate;

	@Id
	@GeneratedValue
	@JsonIgnore
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getKehuzhuanjieshaoxiansuo() {
		return kehuzhuanjieshaoxiansuo;
	}
	public void setKehuzhuanjieshaoxiansuo(Integer kehuzhuanjieshaoxiansuo) {
		this.kehuzhuanjieshaoxiansuo = kehuzhuanjieshaoxiansuo;
	}
	public Integer getKehuzhuanjieshaojiaofuliang() {
		return kehuzhuanjieshaojiaofuliang;
	}
	public void setKehuzhuanjieshaojiaofuliang(Integer kehuzhuanjieshaojiaofuliang) {
		this.kehuzhuanjieshaojiaofuliang = kehuzhuanjieshaojiaofuliang;
	}
	public Integer getKesushuliang() {
		return kesushuliang;
	}
	public void setKesushuliang(Integer kesushuliang) {
		this.kesushuliang = kesushuliang;
	}
	public String getKesujibie() {
		return kesujibie;
	}
	public void setKesujibie(String kesujibie) {
		this.kesujibie = kesujibie;
	}
	public String getKesuleibie() {
		return kesuleibie;
	}
	public void setKesuleibie(String kesuleibie) {
		this.kesuleibie = kesuleibie;
	}
	public String getKesuchulizhuangkuang() {
		return kesuchulizhuangkuang;
	}
	public void setKesuchulizhuangkuang(String kesuchulizhuangkuang) {
		this.kesuchulizhuangkuang = kesuchulizhuangkuang;
	}

	public Integer getJieanshuliang() {
		return jieanshuliang;
	}
	public void setJieanshuliang(Integer jieanshuliang) {
		this.jieanshuliang = jieanshuliang;
	}
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginDate() {
		return beginDate;
	}
	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@ManyToOne
	public ClientRelations getClientRelations() {
		return clientRelations;
	}
	public void setClientRelations(ClientRelations clientRelations) {
		this.clientRelations = clientRelations;
	}
	public Integer getMonth() {
		return month;
	}
	public void setMonth(Integer month) {
		this.month = month;
	}
	public Integer getYears() {
		return years;
	}
	public void setYears(Integer years) {
		this.years = years;
	}
}
